home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / uniq.man < prev    next >
Encoding:
Text File  |  1989-08-15  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. UNIQ                      User Commands                      UNIQ
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      uniq - report repeated lines in a file
  10.  
  11. SSYYNNOOPPSSIISS
  12.      uunniiqq [ --uuddcc [ ++n ] [ --n ] ] [ input [ output ] ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _U_n_i_q reads the input file comparing adjacent lines.  In the
  16.      normal case, the second and succeeding copies of repeated
  17.      lines are removed; the remainder is written on the output
  18.      file.  Note that repeated lines must be adjacent in order to
  19.      be found; see _s_o_r_t(1).  If the --uu flag is used, just the
  20.      lines that are not repeated in the original file are output.
  21.      The --dd option specifies that one copy of just the repeated
  22.      lines is to be written.  The normal mode output is the union
  23.      of the --uu and --dd mode outputs.
  24.  
  25.      The --cc option supersedes --uu and --dd and generates an output
  26.      report in default style but with each line preceded by a
  27.      count of the number of times it occurred.
  28.  
  29.      The _n arguments specify skipping an initial portion of each
  30.      line in the comparison:
  31.  
  32.      --_n      The first _n fields together with any blanks before
  33.              each are ignored.  A field is defined as a string of
  34.              non-space, non-tab characters separated by tabs and
  35.              spaces from its neighbors.
  36.  
  37.      ++_n      The first _n characters are ignored.  Fields are
  38.              skipped before characters.
  39.  
  40. SSEEEE AALLSSOO
  41.      sort(1), comm(1)
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 29, 1985                         1
  64.  
  65.  
  66.  
  67.